#ifndef __DIFFPAGE_H
#define __DIFFPAGE_H
#include <QWidget>

class QwtSlider;
class QLCDNumber;
class QToolBar;
class QAction;
class VideoWidget;

class DiffPage: public QWidget
{
    Q_OBJECT
public:
    DiffPage(QWidget* parent=0);
    ~DiffPage();

public:
    void scale(double fac,double oldFac);

public slots:
    void moveVideo(double value);
    void update();
    void pause(bool type);
    void stopPlay();
    void changePos(double value);
    void changeDuration(double value);
    void changeSize(int width, int height);
    void openFile(QString filename);
    void openFile2(QString filename);

    void prevFrame();
    void nextFrame();

    void moveHori(int value);
    void moveVert(int value);

private:
    void createActions();

    int m_status;
    int m_width, m_height;
    double m_factor, m_duration;

    VideoWidget *video, *video2;
    QwtSlider *slider;
    QLCDNumber *timeLabel;

    QToolBar* playBar;
    QAction *openAct,*pauseAct,*prevAct,*nextAct;

    QTimer *m_timer;
};
#endif;
